package com.Khan.SocialRescueSys.service;

import com.Khan.SocialRescueSys.pojo.Message;

import java.util.List;

/**
 * @author Khan Liu
 * @date 2022/4/4 19:20
 */
public interface MessageService {

    List<Message> getIndexSkill();

    Message getSkill(Long id);

    List<Message> getNews();

    Message getNewsDetail(Long id);

    List<Message> getAllMessages();

    Message getMessage(Long id);

    Message getMessageByTitle(String title);

    int saveMessage(Message message);

    int updateMessage(Message message);

    int deleteMessage(Long id);
}
